package smartt.styy.auth.model.entity;

import javax.persistence.*;

@Table(name = "tb_type_relation")
public class TbTypeRelation {
    /**
     * 主键
     */
    private Integer id;

    /**
     * 用户表id
     */
    @Column(name = "userId")
    private Integer userId;

    /**
     * 用户类型id
     */
    @Column(name = "userTypeId")
    private Integer usertypeId;

    /**
     * 获取主键
     *
     * @return id - 主键
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置主键
     *
     * @param id 主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取用户表id
     *
     * @return userId - 用户表id
     */
    public Integer getUserId() {
        return userId;
    }

    /**
     * 设置用户表id
     *
     * @param userId 用户表id
     */
    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    /**
     * 获取用户类型id
     *
     * @return userTypeId - 用户类型id
     */
    public Integer getUsertypeId() {
        return usertypeId;
    }

    /**
     * 设置用户类型id
     *
     * @param usertypeId 用户类型id
     */
    public void setUsertypeId(Integer usertypeId) {
        this.usertypeId = usertypeId;
    }
}